from weibosender.db.sql_helper import SqlHelper


class SentMsgLogDAL:
    _sql_write_log = 'insert into sent_msg_log(sender_id,receiver_id,content, status) values(?,?,?,?)'

    @staticmethod
    def write_log(log, status=(1,)):
        SqlHelper.execute(SentMsgLogDAL._sql_write_log, log + status)